package com.czbank.financing.controller;

import com.czbank.financing.Entity.UserInfo;
import com.czbank.financing.service.LoginService;
import com.czbank.financing.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: thinkpad
 * @Date: 2019/7/12 18:03
 * @Description:
 */
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;
    @RequestMapping("/SelectOneUserInfo")
    public UserInfo UserInfoOne(String username){
        return userInfoService.SelectOneUserInfo(username);
    }

}
